package com.lft.spring5;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Function: 		ADD FUNCTION.
 * Reason:   		ADD REASON.
 * Date:            2020-12-06 11:39
 * <p>
 * Class Name:      Spring5Source
 * Package Name:    com.lft.spring5
 * @author Laifengting / E-mail:laifengting@foxmail.com
 * @version 1.0.0
 * @since JDK 8
 */
public class Spring5Source {
	public static void main(String[] args) {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring.xml", "spring2.xml");
		// FileSystemXmlApplicationContext context = new FileSystemXmlApplicationContext("spring.xml");
		// AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(MyConfig.class);
		Book book = context.getBean("book", Book.class);
		System.out.println(book);
		
	}
}
